//
//  RecommendCollectionViewCell.m
//  DayByDay
//
//  Created by dllo on 16/5/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "RecommendCollectionViewCell.h"

@interface RecommendCollectionViewCell ()

@property (nonatomic, strong)UILabel *nameLabel;
@property (nonatomic, strong)UILabel *descLabe;

@end

@implementation RecommendCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 20, self.contentView.frame.size.width, 20)];
    self.nameLabel.textAlignment = 1;
    self.descLabe = [[UILabel alloc] initWithFrame:CGRectMake(10, 40, self.contentView.frame.size.width, 10)];
    self.descLabe.textAlignment = 1;
    [self.contentView addSubview:self.nameLabel];
    [self.contentView addSubview:self.descLabe];
    self.backgroundColor = [UIColor clearColor];
}

- (void)setModel:(DataModel *)model {
    _model = model;
//    self.nameLabel.text = _model.name;
//    self.descLabe.text = _model.desc;
//    self.descLabe.font = [UIFont systemFontOfSize:14];
//    self.descLabe.textColor = [UIColor lightGrayColor];
    self.nameLabel.backgroundColor = [UIColor clearColor];
    self.descLabe.backgroundColor = [UIColor clearColor];
    
}


@end
